const seq = require('../../seq')
const {STRING, BOOLEAN} = require('../../types')

const Role = seq.define('role', {
  name: {
    type: STRING,
    allowNull: false,
    comment: '角色名字'
  },
  auth: {
    type: STRING,
    allowNull: false,
    comment: '角色权限'
  },
  isSchool: {
    type: BOOLEAN,
    defaultValue: false,
    allowNull: false,
    comment: '是否是学区房用户'
  },
  description: {
    type: STRING,
    allowNull: false,
    comment: '角色描述'
  }
})

module.exports = Role
